package com.ztjy.repository.dao;

import com.ztjy.bean.CkWarehouse;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CkWarehouseDao {
    /**
     * 查询所有出库商品
     * @param ckWarehouse
     * @return
     */
    List<CkWarehouse> findAllCkWarehouse(CkWarehouse ckWarehouse);

    /**
     * 查询出库商品详情
     * @param id
     * @return
     */
    public CkWarehouse findCkWarehouseById(Integer id);

    /**
     * 添加出库商品
     * @param kcWarehouse
     * @return
     */
    public boolean addCkWarehouse(CkWarehouse kcWarehouse);

    public boolean updateCk(CkWarehouse ckWarehouse);
}